#ifndef GAME_H
#define GAME_H

#include "NinjibrarySFML.h"

class Game
{
public:

	// Loads and starts the game.
	Game();

	// Main menu state of the game.
	int MainMenu();

private:

	// The main window of the game.
	Ninja::Window MainWindow;

	Ninja::
};

// Loads and starts the game.
Game::Game()
{

	// Creates the main program window with set size and title.
	MainWindow.Create( "JTGWAALA", 800, 600, 32 );

	// Runs the first state of the game ( main menu ).
	MainMenu();

}

// Main menu state of the game.
int Game::MainMenu()
{

	// Loop while MainWindow is still open.
	while( MainWindow.IsOpen() )
	{
	
		// Loop and process events ( if any ) in queue.
		while( MainWindow.GetEvents() )
		{

			// Perform if the user clicks the red 'X'.
			if( MainWindow.WindowEventsType() == "Closed" )
			{
			
				// Close the main window.
				MainWindow.CloseWindow();
			
			}
		
			// Perform if the user pressed the "Esc" key.
			if( MainWindow.KeyboardKeyPressed() == "Escape" )
			{
			
				// Close the main window.
				MainWindow.CloseWindow();
			
			}
		
		}

		// Clears and updates window with new data.
		MainWindow.Update();
	
	}

	// The program exits successfully, and the main window is closed.
	return 0;

}

#endif